<template>
  <a-modal 
    :visible="visible"
    :title="title"
    :maskClosable="false"
    :destroyOnClose="true"
    :keyboard="false"
    @cancel="closeModal()"
    width="1000px">
    <specifications></specifications>
    <template slot="footer">
      <a-button @click="closeModal()">关闭</a-button>
    </template>
  </a-modal>
</template>
<script>
import specifications from '@/views/menuPage/product/specifications';

export default {
  components:{
    specifications
  },
  props: {
    visible:{
      type:Boolean,
      default:false,
    }
  },
  computed: {
    title () {
      return '新建规格'
    },
  },
  data () {
    return {

    }
  },
  watch: {
    
  },
  created(){
    
  },
  mounted () {
  },
  methods: {
    closeModal (freshTable) {
      this.$emit('cancel', freshTable)
    }
  }
}
</script>